home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / press.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  760b  |  28 lines

  1. /* PRESS.H Prototype of all "pressable" classes */
  2.  
  3. #ifndef __PRESS_H_
  4. #define __PRESS_H_
  5.  
  6. #include "frame.h"
  7. #include "visible.h"
  8. #include "addevent.h"
  9.  
  10. class Press : public Frame,  public Visible
  11.     {
  12.     public:
  13.     Press(rect c, BORDERS b_type, int text_or_graphics = TEXT) :
  14.            Frame(c, b_type, 0, text_or_graphics)
  15.         { action_type = ret = pointTo = 0; }
  16.  
  17.     virtual void repose(rect new_coord)
  18.         { rectangle = new_coord; }
  19.  
  20.     virtual rect bound() { return tog ? rectangle :
  21.                                         screenRect(rectangle); }
  22.     virtual void exe(int act = 0);
  23.     virtual void show() { Frame::show(); }
  24.     virtual void press() { Frame::press(); }
  25.     virtual void release() { Frame::release(); }
  26.     };
  27.  
  28. #endif __PRESS_H_